<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="div" style="display: none;">fasdfasd</div>
    <div id="div2">div2</div>
    <script>
        setTimeout(() => {
            div.style.display = ''
        }, 1000)

        div2.onclick = (e) => {
            console.log(e.stopPropagation())
        }
    </script>
</body>
</html>